#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by master on 2017/3/5
import socket

ip_port = ("127.0.0.1", 50007)

sk = socket.socket()
sk.connect(ip_port)

sk.sendall(bytes("请占领地球", encoding="utf8"))
server_reply = sk.recv(1024)
print(str(server_reply,"utf8"))
sk.close()
